import Vue from 'vue'
import Router from 'vue-router'
import Home from './pages/Home.vue'
import Cover from './pages/Cover.vue'
import Scqj from './pages/Scqj.vue'
import Ppjs from './pages/Ppjs.vue'
import Cpqd from './pages/Cpqd.vue'
import Xmys from './pages/Xmys.vue'
import Tzyl from './pages/Tzyl.vue'
import Fwbz from './pages/Fwbz.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'cover',
      component: Cover
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/scqj',
      name: 'scqj',
      component: Scqj
    },
    {
      path: '/ppjs',
      name: 'ppjs',
      component: Ppjs
    },
    {
      path: '/cpqd',
      name: 'cpqd',
      component: Cpqd
    },
    {
      path: '/xmys',
      name: 'xmys',
      component: Xmys
    },
    {
      path: '/tzyl',
      name: 'tzyl',
      component: Tzyl
    },
    {
      path: '/fwbz',
      name: 'fwbz',
      component: Fwbz
    }
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
